local TOOL_TIP = {}

function TOOL_TIP:Init()
	
	self.Name = "Test"
	self.Range = 240
	self.Icon = "devin/blackbetty/spells/warrior/slam.png"
	self.Tooltip = "Poontang"
	self.Color = Color(255, 255, 255, 255)
	self.OnCooldown = false
	self.PosX = 0
	self.PosY = 0
	
end

function TOOL_TIP:SetPos(x, y)
	self.PosX = x
	self.PosY = y
end

function TOOL_TIP:GetPos()
	return PosX, PosY
end

function TOOL_TIP:Draw()

	if(tooltipPanel)then
		tooltipPanel:Remove()
	end
	
	tooltipPanel = vgui.Create("DImage")
		tooltipPanel:SetVisible(true)
		tooltipPanel:SetImage("devin/blackbetty/tooltip/window.png")
		tooltipPanel:SetSize(165, 108)
	tooltipImage = vgui.Create("DImage", tooltipPanel)
		tooltipImage:SetVisible(true)
		tooltipImage:SetImage(self.Icon)
		tooltipImage:SetSize(48, 48)
		tooltipImage:SetPos(4, 4)
	tooltipTitle = vgui.Create("DLabel", tooltipPanel)
		tooltipTitle:SetVisible(true)
		tooltipTitle:SetText(self.Name)
		tooltipTitle:SetSize(128, 16)
		tooltipTitle:SetPos(64, 8)
	tooltipTitle = vgui.Create("DLabel", tooltipPanel)
		tooltipTitle:SetVisible(true)
		tooltipTitle:SetText("Range: "..self.Range.." yds." )
		tooltipTitle:SetSize(128, 32)
		tooltipTitle:SetPos(64, 16)
	tooltipDesc = vgui.Create("DLabel", tooltipPanel)
		tooltipDesc:SetVisible(true)
		tooltipDesc:SetText(self.Tooltip)
		tooltipDesc:SetSize(256, 64)
		tooltipDesc:SetPos(12, 48)
end
		


vgui.Register( "ToolTip", TOOL_TIP)


